package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.request.HotCategoryProductRequest;
import com.ytjj.qmyx.admin.model.request.HotProductCategoryRequest;
import com.ytjj.qmyx.admin.model.response.HotCategoryProductResponse;
import com.ytjj.qmyx.mall.model.HotCategoryProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @Version: 1.0
 */
public interface HotCategoryProductDao {

    List<HotCategoryProductResponse> selectList(HotCategoryProductRequest hotCategoryProductRequest);

    Integer insertHotCategoryProduct(@Param("hotProductCategoryId") Integer hotProductCategoryId,
                                     @Param("productId") Integer productId,
                                     @Param("sort") Integer sort);

    Integer updateSort(@Param("categoryProductId") Integer categoryProductId, @Param("sort") Integer sort);

    Integer isExist(Integer productId);

    Integer removeData(Integer categoryProductId);

    List<HotCategoryProduct> getCategoryProductListByHpci(Integer hotProductCategoryId);
}
